home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Run Magazine ReRun: Strategy Games 1
/
rerun-strategygamesI.d64
/
video poker
(
.txt
)
< prev
Wrap
Commodore BASIC
|
2022-09-20
|
7KB
|
264 lines
2 printchr$(147)"would you like instructions (y/n)?
4 [161] a$: [139] a$[179][177] "y" [175] a$[179][177]"n" [167] 4
6 [139] a$[178]"n" [167] 62
8 [153]"instructions on screen or printer (s/p)?
10 get b$: if b$<> "s" and b$<>"p" then 10
12 if b$="s"then d=3
14 if b$="p" then d=4
16 open d,d
18 print#d,"
20 [152]d,"video poker by tony brantner
22 print#d,"
24 [152]d,"run it right: c-64; joystick
26 print#d,"
28 [152]d,"video poker is a game for one player
30 print#d,"with a joystick in port 2.
32 [152]d,"
34 print#d,"raise and lower bets with the up-down
36 [152]d,"joystick motion. betting can only go to
38 print#d,"$50 per hand, and cannot exceed your
40 [152]d,"balance. place bets and select the hold
42 print#d,"cards with the firebutton. to release a
44 [152]d,"hold card, press the firebutton again.
46 print#d,"when you choose your hold cards, move
48 [152]d,"to the draw box and press the fire-
50 print#d,"button. the cards you don't select will
52 [152]d,"be discarded and replaced. the computer
54 print#d,"automatically calculates your score and
56 [152]d,"winnings. when you are ready to quit,
58 print#d,"enter a bet of $0.
60 [152]d,"":[160]d
62 [153]"press any key to begin the program..."
64 [161] e$:[139] e$[178]"" [167] 64
66 [156]
68 [143] video poker v1.0 - t. brantner
70 [151]52,56:[151]56,56:[156]
72 [134]dc(51),ca(4),ch(15),hv(5),hs(4),po$(9),po(9)
74 [129]a[178]0[164]51:dc(a)[178]a:[130]:z[178][187]([171]ti)
76 v[178]53248:sc[178]1024:sp[178]sc[170]1016:s1[178]54272
78 s2[178]s1[170]7:j2[178]56320:sx[178]50:sy[178]66:mb[178]50
80 cv$[178]"23456789[jqka":cs$[178]"\]^_"
82 [129]a[178]1[164]38:sp$[178]sp$[170][199](32):[130]
84 [129]a[178]s1[164]s1[170]24:[151]a,0:[130]
86 [151]s1[170]24,15:[141]382
88 bt[178]1:bl[178]100
90 [143]---main
92 [129]a[178]0[164]4:ca(a)[178]0:[130]
94 [141]252
96 [141]190:[139]bt[178]0[167]118
98 [141]168
100 cy[178]1:[141]354:cy[178]6:[141]354
102 [141]252:[141]180:cp[178]0:[141]144
104 [141]218:[141]168:[141]144
106 [141]266:bl[178]bl[170]po(pv)[172]bt
108 cy[178]1:a$[178]po$(pv):cc[178]0
110 cx[178]20[171][195](a$):[141]366
112 tm[178]70:[141]346
114 [139]bl[167]92
116 [143]---end game
118 cy[178]10:cx[178]7:cc[178]0:a$[178]"play again?"
120 [141]366:cx[178]31:cc[178]1:xp[178]1
122 js[178][194](j2)
124 [139](js[175]2)[178]0[175]xp[178]1[167]xp[178]2
126 [139](js[175]1)[178]0[175]xp[178]2[167]xp[178]1
128 a$[178][202]("yn",xp,1):[141]366
130 tm[178]10:[141]346
132 [141]360:[153][200](sp$,2)
134 tm[178]10:[141]346:[139](js[175]16)[167]122
136 [141]354
138 [139]xp[178]1[167][141]326:[137]88
140 [151]832,0:[158]832
142 [143]---draw cards
144 [129]xp[178]0[164]4
146 [139]ca(xp)[167]164
148 a[178]dc(cp):cs%[178]a[173]13:cv%[178]a[171]13[172]cs%
150 hv(xp)[178]cv%:hs(xp)[178]cs%
152 cy[178]3:cx[178]5[170]xp[172]7:cc[178]cs%[175]2
154 a$[178][202](cv$,cv%[170]1,1):[141]366
156 cy[178]4:a$[178][202](cs$,cs%[170]1,1):[141]366
158 [151]v[170]27,[194](v[170]27)[176]2[174](xp[170]1)
160 [151]v[170]40[170]xp,1:[141]316:cp[178]cp[170]1
162 tm[178]10:[141]346
164 [130]:[142]
166 [143]---face down
168 [129]z[178]0[164]4
170 [139]ca(z)[167]176
172 [151]v[170]27,[194](v[170]27)[175]255[171]2[174](z[170]1)
174 [151]v[170]40[170]z,10
176 [130]:[142]
178 [143]---shuffle
180 [129]a[178]1[164]15:[141]316:[130]
182 [129]a[178]0[164]51:z[178][181]([187](1)[172]52)
184 aa[178]dc(a):dc(a)[178]dc(z):dc(z)[178]aa
186 [130]:[142]
188 [143]---place bet
190 cy[178]10:cx[178]7:cc[178]0:a$[178]"place bet"
192 [141]366:cx[178]25
194 [139]bt[179]0[167]bt[178]0
196 [139]bt[177]mb[167]bt[178]mb
198 [139]bt[177]bl[167]bt[178]bl
200 a[178]bt:z[178]4:[141]256
202 js[178][194](j2):[139](js[175]16)[178]0[167]212
204 [139](js[175]3)[179][177]3[167]bt[178]bt[170][180](js[175]2)[171][180](js[175]1):[137]194
206 tm[178]10:[141]346
208 [141]360:[153][200](sp$,8)
210 tm[178]10:[141]346:[137]194
212 [141]326:[141]354
214 bl[178]bl[171]bt:[142]
216 [143]---hold cards
218 jx[178]0:jy[178]0
220 [151]v[170]16,32[171](jx[178]4)
222 [151]v,(sx[170]jx[172]56)[175]255
224 [151]v[170]1,sy[170]jy[172]16:tm[178]4:[141]346
226 [151]v[170]1,0:tm[178]4:[141]346
228 js[178][194](j2):[139](js[175]16)[178]0[167]242
230 [139](js[175]2)[178]0[175](jy[178]0)[167]jy[178]1:[141]336
232 [139](js[175]1)[178]0[175](jy[178]1)[167]jy[178]0:[141]336
234 [139]jy[167]jx[178]2:[137]220
236 [139](js[175]4)[178]0[175](jx[177]0)[167]jx[178]jx[171]1:[141]336
238 [139](js[175]8)[178]0[175](jx[179]4)[167]jx[178]jx[170]1:[141]336
240 [137]220
242 [139]jy[167][141]326:[142]
244 ca(jx)[178]1[171]ca(jx):a$[178][200](sp$,4):[139]ca(jx)[167]a$[178][199](152)[170]"hold"
246 cy[178]6:cx[178]4[170]jx[172]7:[141]360:[153]a$
248 [141]326:[137]220
250 [143]---print balance
252 cy[178]12:cx[178]21:z[178]6:a[178]bl
254 [143]---format number
256 z$[178][196](a)
258 a$[178][200](sp$,z[171][195](z$))[170]"$"[170][201](z$,[195](z$)[171]1)
260 cc[178]1:[141]366
262 [142]
264 [143]---evaluate hand
266 sv[178]0:sr[178]0:fl[178]0:ct[178]0:pv[178]0:hv(5)[178]99
268 [129]a[178]3[164]0[169][171]1:[129]z[178]0[164]a
270 [139]hv(z)[179]hv(z[170]1)[167]aa[178]hv(z):hv(z)[178]hv(z[170]1):hv(z[170]1)[178]aa
272 [130]:[130]
274 [129]a[178]0[164]4:[129]z[178]0[164]4
276 [139]hv(z)[178]hv(a)[167]sv[178]sv[170]1
278 [130]:[130]
280 [129]a[178]0[164]4
282 ct[178]ct[170]hv(a)
284 [139]hv(a)[178]hv(a[170]1)[170]1[167]sr[178]sr[170]1
286 [139]hs(a)[178]hs(0)[167]fl[178]fl[170]1
288 [130]
290 [143]---point value
292 [139]sv[178]7[167]pv[178]1
294 [139]sv[178]9[167]pv[178]2
296 [139]sv[178]11[167]pv[178]3
298 [139](sr[178]4)[176](hv(0)[178]12[175]sr[178]3[175]ct[178]18)[167]pv[178]4
300 [139]fl[178]5[167]pv[178]5
302 [139]sv[178]13[167]pv[178]6
304 [139]sv[178]17[167]pv[178]7
306 [139]fl[179]5[167][142]
308 [139](sr[178]4)[176](hv(0)[178]12[175]sr[178]3[175]ct[178]18)[167]pv[178]8
310 [139]hv(0)[178]12[175]sr[178]4[167]pv[178]9
312 [142]
314 [143]---card sound
316 [151]s1,0:[151]s1[170]1,200
318 [151]s1[170]5,48:[151]s1[170]6,0
320 [151]s1[170]4,128:[151]s1[170]4,129
322 [142]
324 [143]---beep sound
326 [151]s2,0:[151]s2[170]1,12
328 [151]s2[170]5,8:[151]s2[170]6,240
330 [151]s2[170]4,17:tm[178]6:[141]346
332 [151]s2[170]4,16:[146]j2,16:[142]
334 [143]---cursor sound
336 [151]s1,0:[151]s1[170]1,10
338 [151]s1[170]5,2:[151]s1[170]6,0
340 [151]s1[170]4,16:[151]s1[170]4,17
342 [142]
344 [143]---delay
346 tm[178]tm[170]ti
348 [139]tm[177]ti[167]348
350 [142]
352 [143]---clear line
354 [151]214,cy[171]1:[153]:[153]sp$
356 [142]
358 [143]---plot
360 [151]214,cy[171]1:[153]:[153][163]cx);
362 [142]
364 [143]---print wide string
366 sl[178]sc[170]cy[172]40[170]cx
368 [129]a[178]1[164][195](a$)
370 z[178]([198]([202](a$,a,1))[175]63)[172]2
372 [151]sl[170]s1,cc:[151]sl[170]s1[170]1,cc
374 [151]sl,z[170]128:[151]sl[170]1,z[170]129
376 sl[178]sl[170]2
378 [130]:[142]
380 [143]---redefined characters
382 [151]53281,5:[151]53280,5
384 [153][199](8)[199](147):[151]v[170]21,0
386 cy[178]12:cx[178]14:[141]360
388 [153][199](144)"setting up..."
390 [151]56334,[194](56334)[175]254
392 [151]1,[194](1)[175]251
394 [151]781,5:[151]782,1:[151]91,212:[151]90,0:[151]89,60:[151]88,0
396 [158]41964
398 [151]1,[194](1)[176]4
400 [151]56334,[194](56334)[176]1
402 [151]53272,([194](53272)[175]240)[176]14
404 [129]a[178]0[164]15:[135]ch(a):[130]
406 n1[178]14336:n2[178]n1[170]1024:n3[178]n2[170]8
408 [129]a[178]0[164]63:[129]z[178]0[164]7
410 cn[178][194](n1[170]a[172]8[170]z):aa[178]ch((cn[175]240)[173]16):zz[178]ch(cn[175]15)
412 [151]n2[170]a[172]16[170]z,aa:[151]n3[170]a[172]16[170]z,zz
414 [130]:[130]
416 [129]a[178]0[164]79:[135]z:[151]n2[170]432[170]a,z
418 [130]
420 [143]---sprites
422 [129]a[178]832[164]959:[135]z:[151]a,z:[130]
424 [151]v[170]23,127:[151]v[170]29,127
426 [151]v[170]27,65:[151]v[170]28,127
428 [151]v[170]37,1:[151]v[170]38,0
430 [129]a[178]0[164]4:[151]v[170]40[170]a,10
432 [151]v[170]2[170]a[172]2,(sx[170]a[172]56)[175]255
434 [151]v[170]3[170]a[172]2,sy:[151]sp[170]1[170]a,13
436 [130]:[151]v[170]16,32
438 [151]v[170]12,sx[170]112:[151]v[170]13,sy[170]16
440 [151]sp[170]6,14:[151]v[170]45,0
442 [151]sp,14:[151]v[170]1,0:[151]v[170]39,7
444 [143]---screen
446 [153][199](147):[151]v[170]21,127
448 cy[178]8:cx[178]18:[14